import javax.swing.*;
import java.awt.*; 
 
   public class SimulatorViews extends JPanel{
         
          private StepView stepView;
          private FieldView fieldView;
          private StatsView statsView;
     
     public SimulatorViews(SimulatorModel model){
            fieldView=new FieldView(model);
            fieldView.setColor(Rabbit.class, Color.orange);
            fieldView.setColor(Fox.class, Color.blue);
            stepView  = new StepView(model);
            statsView = new StatsView(model);
            setLayout(new BorderLayout());
            add(stepView, BorderLayout.NORTH);
            add(statsView, BorderLayout.SOUTH);
            add(fieldView, BorderLayout.CENTER);
        }
        
        public void update(){
            stepView.update();
            fieldView.update();
            fieldView.repaint();
            statsView.update();

        }
}